package com.baichuan.zntx.domain.bo;

import com.baichuan.zntx.domain.Command;
import com.baichuan.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 指令记录业务对象 t_command
 *
 * @author Baichuan
 * @date 2024-05-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Command.class, reverseConvertGenerate = false)
public class CommandBo extends BaseEntity {

    private String id;
    /**
     * 设备
     */
    @NotBlank(message = "设备不能为空")
    private String deviceId;

    /**
     * 设备IP地址
     */
    @NotBlank(message = "设备IP地址不能为空")
    private String ip;

    /**
     * 状态
     */
    @NotNull(message = "状态不能为空")
    private Integer status;

    private String content;

}
